package cal;

import com.alibaba.fastjson.JSONObject;

import java.util.Date;

/**
 * @program: MyServlet
 * @description: 环境因素
 * @author: Mr.Wang
 * @create: 2020-07-21 20:11
 **/
public class Environments {
    //    public Date Time;
    public String Time;
    public String Weather;

    public Environments() {
        Time = "null";
        Weather = "null";
    }

    public Environments(JSONObject env) {
//        Time=env.getDate("Time");
        Time = env.getString("Time");
        Weather = env.getString("Weather");
    }
}
